#ifndef MYTACK_H
#define MYTACK_H

#include <QObject>

class Generatet : public QObject
{
    Q_OBJECT
public:
    explicit Generatet(QObject *parent = nullptr);
    void working(int snum);
signals:
    void sendArray(QVector<int> nun);

};
class BubbleSortt : public QObject
{
    Q_OBJECT
public:
    explicit BubbleSortt(QObject *parent = nullptr);
    void working(QVector<int> slist);
signals:
    void finish(QVector<int> slist);

};
class QuickSoltt : public QObject
{
    Q_OBJECT
public:
    explicit QuickSoltt(QObject *parent = nullptr);
    void working(QVector<int> slist);
private:
    int quicksort(QVector<int> &a, int low, int high);
signals:
    void finish(QVector<int> slist);

};

#endif // MYTACK_H
